package com.atguigu.difficult;

public class Example {

    {
        System.out.println("非静态代码块a ="  + this.a);
    }
    private int a = 1;

    public Example() {
        super();
        System.out.println("无参构造");
    }

    public Example(int a) {
        super();//代表Object类的 <init>()
        this.a = a;
    }

    public static void main(String[] args) {
        Example e1 = new Example();
        Example e2 = new Example(2);
    }
}
